/*
    Queue based on static array
    
    kevx@09/24/2011
*/

#include "server_cfg.h"
#include <stdbool.h>

#define QUEUE_SIZE MAX_CLIENT
#define NULL_DATA  0

typedef struct {
    int head;
    int tail;
    int e[QUEUE_SIZE];
    int count;
}QueueInt;

bool enqueueInt(QueueInt* qi, int data);
int  dequeueInt(QueueInt* qi);
void initQueue(QueueInt* qi);

